

TOOL = nil


MsgN("Loading CAF Tools")

include( "tool_helpers.lua" )

for key, val in pairs(file.FindInLua("RD2/stools/*.lua")) do
	local _,_,s_toolmode = string.find( val, "([%w_]*)\.lua" )
	
	MsgN("\tloading stool: ",val)

	RD2ToolSetup.open( s_toolmode )
	
	AddCSLuaFile( "RD2/stools/"..val )
	include( "RD2/stools/"..val )
	
	RD2ToolSetup.BaseCCVars()
	RD2ToolSetup.BaseLang()
	RD2ToolSetup.MaxLimit()
	RD2ToolSetup.RegEnts()
	RD2ToolSetup.MakeFunc()
	RD2ToolSetup.MakeCP()
	RD2ToolSetup.close()
end

RD2ToolSetup = nil
